package org.hbnu.xiaomi.entity;

import java.sql.Timestamp;

public class Carts {
    public int id;

    public int user_id;

    public int good_id;

    public int num;

    public int allprice;

    public Timestamp ordertime;

    public Users users;
    public Goods goods;
    public Carts() {

    }
    public Carts(int id, int user_id, int good_id, int num, int allprice, Timestamp ordertime) {
        this.id = id;
        this.user_id = user_id;
        this.good_id = good_id;
        this.num = num;
        this.allprice = allprice;
        this.ordertime = ordertime;
    }

    public Users getUsers() {
        return users;
    }

    public void setUsers(Users users) {
        this.users = users;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public int getGood_id() {
        return good_id;
    }

    public void setGood_id(int good_id) {
        this.good_id = good_id;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getAllprice() {
        return allprice;
    }

    public void setAllprice(int allprice) {
        this.allprice = allprice;
    }

    public Timestamp getOrdertime() {
        return ordertime;
    }

    public void setOrdertime(Timestamp ordertime) {
        this.ordertime = ordertime;
    }
}
